/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.shanhesoft.java.common.persistence.domain.IdEntity;

import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * 考试记录管理Entity 考试记录管理
 * @author admin
 * @version 2020-10-10 17:00:18
 */
@TableName(value = "t_examination_record")
@Data @ToString @NoArgsConstructor @AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ExaminationRecord extends IdEntity<ExaminationRecord> {

	private static final long serialVersionUID = 1L;
	/** F_USERID user_id  :  用户ID */
	public static final String F_USERID = "userId";
	/** F_PAPERID paper_id  :  试卷ID */
	public static final String F_PAPERID = "paperId";
	/** F_STARTTIME start_time  :  开始时间 */
	public static final String F_STARTTIME = "startTime";
	/** F_ENDTIME end_time  :  结束时间 */
	public static final String F_ENDTIME = "endTime";
	/** F_SCORE score  :  成绩 */
	public static final String F_SCORE = "score";
	/** F_CORRECTNUMBER correct_number  :  正确题目数量 */
	public static final String F_CORRECTNUMBER = "correctNumber";
	/** F_INCORRECTNUMBER incorrect_number  :  错误题目数量 */
	public static final String F_INCORRECTNUMBER = "incorrectNumber";
	/** F_SUBMITSTATUS submit_status  :  提交状态 */
	public static final String F_SUBMITSTATUS = "submitStatus";


	/** userId 用户ID */@NotBlank @Size(max=50)
	@TableField("user_id")
	private String userId;
	/** paperId 试卷ID */@NotBlank @Size(max=50)
	@TableField("paper_id")
	private String paperId;
	/** startTime 开始时间 */
	@TableField("start_time")
	private Date startTime;
	/** endTime 结束时间 */
	@TableField("end_time")
	private Date endTime;
	/** score 成绩 */

	private Long score;
	/** correctNumber 正确题目数量 */
	@TableField("correct_number")
	private Long correctNumber;
	/** incorrectNumber 错误题目数量 */
	@TableField("incorrect_number")
	private Long incorrectNumber;
	/** submitStatus 提交状态 */
	@TableField("submit_status")
	private Integer submitStatus;


	@Override
    public boolean equals(Object o) {
        return super.equals(o);
    }
    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
